package name.koppernickus.lsp.mutable.rectangle;

public class MutableSquare extends MutableRectangle {

    public MutableSquare(int width) {
        super(width, width);
    }

    @Override
    public void setWidth(int width) {
        super.setWidth(width);
        super.setHeight(width);
    }

    @Override
    public void setHeight(int height) {
        super.setWidth(height);
        super.setHeight(height);
    }

    @Override
    public String toString() {
        return "Square[" + getWidth() + "x" + getWidth() + "]";
    }

}
